﻿<SettingsFlyout
		x:Uid="eLukFolderViewID"
    x:Class="eLuk.eLukFolderView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:eLuk"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    IconSource="Assets/folders.png"
    Title="Select Folder"
    d:DesignWidth="346">
	<!-- This StackPanel acts as a root panel for vertical layout of the content sections -->
	<StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >

		<!-- The StackPanel(s) below define individual content sections -->

		<!-- Content Section 1-->
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*"></ColumnDefinition>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="*"></RowDefinition>
			</Grid.RowDefinitions>
			<ListView Grid.Column="0" Grid.Row="0"
            x:Name="folderListView"
            AutomationProperties.AutomationId="FoldersListView"
            AutomationProperties.Name="eLukFolders"
            TabIndex="1"
            IsSwipeEnabled="False"
            SelectionChanged="folderListView_SelectionChanged"  ItemClick="folderListView_ItemClick" IsItemClickEnabled="True" >
				<!--ItemsSource="{Binding Source={StaticResource foldersViewSource}}"-->
				<ListView.ItemTemplate>
					<DataTemplate>
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="*"/>
							</Grid.ColumnDefinitions>
							<SymbolIcon Symbol="Folder"></SymbolIcon>
							<StackPanel Grid.Column="1" Margin="2,0,0,0" Orientation="Horizontal" VerticalAlignment="Center">
								<TextBlock Text="{Binding Name}" TextWrapping="NoWrap" Margin="0,0,0,0"/>
								<TextBlock Text=" (" TextWrapping="NoWrap" Margin="0,0,0,0" />
								<TextBlock Text="{Binding Exists}" TextWrapping="NoWrap" Margin="0,0,0,0"/>
								<TextBlock Text=")" TextWrapping="NoWrap" Margin="0,0,0,0"/>
							</StackPanel>
						</Grid>
					</DataTemplate>
				</ListView.ItemTemplate>
				<ListView.ItemContainerStyle>
					<Style TargetType="FrameworkElement">
						<Setter Property="Margin" Value="0,0,0,10"/>
						<Setter Property="Height" Value="30"/>
						<Setter Property="VerticalAlignment" Value="Center"/>
					</Style>
				</ListView.ItemContainerStyle>
			</ListView>


		</Grid>

		<!-- Define more Content Sections below as necessary -->

	</StackPanel>
</SettingsFlyout>
